var moveZeroes = function (nums) {
    const len = nums.length;
    let left = 0, right = 0;
    while (right < len) {
        if (nums[right] != 0) {
            // swap(nums, left, right);
            let temp = nums[left];
            nums[left] = nums[right];
            nums[right] = temp;
            left++;
        }
        right++;
    }
};
